package cn.ilikes.tools.nosql.test.jpa.pojos;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn;

@Entity
@Table(name = "pe_evaluation_kpi_libs", schema = "ilikes")
public class EvaluationKpilibs {

	@Id
	@IndexColumn(index = IndexColumn.Index.analyzed, name = "id", store = IndexColumn.Store.yes)
	private Integer uuid;
	@Column(name = "type")
	@IndexColumn(index = IndexColumn.Index.analyzed, name = "type", store = IndexColumn.Store.yes)
	private String type;

	@Column(name = "lib_name")
	@IndexColumn(index = IndexColumn.Index.analyzed, name = "libName", store = IndexColumn.Store.yes)
	private String libName;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "evaluationKpilibs")
	private List<EvaluationKpi> evaluationKpis;

	public Integer getUuid() {
		return uuid;
	}

	public void setUuid(Integer uuid) {
		this.uuid = uuid;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getLibName() {
		return libName;
	}

	public void setLibName(String libName) {
		this.libName = libName;
	}

	public List<EvaluationKpi> getEvaluationKpis() {
		return evaluationKpis;
	}

	public void setEvaluationKpis(List<EvaluationKpi> evaluationKpis) {
		this.evaluationKpis = evaluationKpis;
	}

}//end EvaluationKpilibs